

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.SystemConfig;

namespace Yozeev.EntityMapper.PowerRoles
{
    public class PowerRoleCfg : IEntityTypeConfiguration<PowerRole>
    {
        public void Configure(EntityTypeBuilder<PowerRole> builder)
        {

            builder.ToTable("PowerRoles", YoYoAbpefCoreConsts.SchemaNames.Basic);

            
			builder.Property(a => a.RoleId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			//builder.Property(a => a.Role).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			builder.Property(a => a.PowerId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
			//builder.Property(a => a.Power).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


        }
    }
}


